package model;

import interfaces.VareInterface;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Maja
 */
public class Vare extends UnicastRemoteObject implements VareInterface{
    
    private int id;
    private String titel;
    private String beskrivelse;
    private int salgsPris;
    private int antalReserveret;
    private int antalLager;
    private VareGruppe vareGruppe;

    public Vare(int id, String titel, String beskrivelse, int salgsPris, int antalReserveret, int antalLager, VareGruppe vareGruppe) throws RemoteException{
        this.id = id;
        this.titel = titel;
        this.beskrivelse = beskrivelse;
        this.salgsPris = salgsPris;
        this.antalReserveret = antalReserveret;
        this.antalLager = antalLager;
        this.vareGruppe = vareGruppe;
    }

    public int getId() throws RemoteException {
        return id;
    }

    public String getTitel() throws RemoteException {
        return titel;
    }

    public String getBeskrivelse() throws RemoteException {
        return beskrivelse;
    }

    public int getSalgsPris() throws RemoteException {
        return salgsPris;
    }

    public int getAntalReserveret() throws RemoteException {
        return antalReserveret;
    }

    public int getAntalLager() throws RemoteException {
        return antalLager;
    }

    public VareGruppe getVareGruppe() throws RemoteException {
        return vareGruppe;
    }
    
    




 
    
}
